
/*
 * Copyright (C) 2008-2009 Archie L. Cobbs. All rights reserved.
 *
 * $Id: ActionChecker.java 314 2010-02-10 18:52:16Z archie.cobbs $
 */

package org.dellroad.sidekar.aop;

import org.dellroad.sidekar.util.Closeable;
import org.dellroad.sidekar.util.CloseableNotes;
import org.dellroad.sidekar.util.VoidDatabaseAction;
import static org.testng.Assert.assertTrue;

public class ActionChecker extends VoidDatabaseAction implements Closeable {

    // Verify we are executing within a call to performAction()
    public void executeVoid() {
        assertTrue(CloseableNotes.addToCurrentAction(this, true));
    }

    public void close() {
    }
}

